<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbmesesEditDlg" widgetVar="PyfntbmesesEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbmesesTitle}">

            <h:form id="PyfntbmesesEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbmesesController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbmesesLabel_pyfntbmesesid}" for="pyfntbmesesid" />
                        <h:outputText id="pyfntbmesesid" value="#{pyfntbmesesController.selected.pyfntbmesesid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbmesesLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{pyfntbmesesController.selected.nombre}" title="#{myBundle.EditPyfntbmesesTitle_nombre}" required="true" requiredMessage="#{myBundle.EditPyfntbmesesRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbmesesLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbmesesController.selected.observaciones}" title="#{myBundle.EditPyfntbmesesTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditPyfntbmesesRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbmesesLabel_pyfntbcuatrimid}" for="pyfntbcuatrimid" />
                        <p:selectOneMenu id="pyfntbcuatrimid" value="#{pyfntbmesesController.selected.pyfntbcuatrimid}" required="true" requiredMessage="#{myBundle.EditPyfntbmesesRequiredMessage_pyfntbcuatrimid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbcuatrimController.items}"
                                           var="pyfntbcuatrimidItem"
                                           itemValue="#{pyfntbcuatrimidItem}"
                                           itemLabel="#{pyfntbcuatrimidItem.pyfntbcuatrimid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbcuatrimConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbmesesController.save}" value="#{myBundle.Save}" update="display,:PyfntbmesesListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbmesesEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbmesesEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
